<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('mail/singlemail/flexigrid') ?>',
                    colModel: [
						{display: '<?= translate('MAIL_PLATFORM') ?>', name: 'platform', width: 100 },
                        {display: '<?= translate('AREANAME') ?>', name: 'area_host', width: 100},
                        {display: '<?= translate('MAIL_RECEIVER') ?>', name: 'reciver_name', width: 100},
                        {display: '<?= translate('MAIL_TITLE') ?>', name: 'mail_title', width: 100},
                    /*  {display: '<?= translate('MAIL_TIME_LIMIT') ?>', name: 'keep_time', width: 100},  */
                        {display: '<?= translate('MAIL_CONTENT') ?>', name: 'mail_content', width: 300},
                        {display: '<?= translate('MAIL_ITEMAMOUNT1') ?>', name: 'itemid1', width: 100},
                        {display: '<?= translate('MAIL_ITEMAMOUNT2') ?>', name: 'itemid2', width: 100},
                        {display: '<?= translate('MAIL_ITEMAMOUNT3') ?>', name: 'itemid3', width: 100},
                        {display: '<?= translate('MAIL_ITEMAMOUNT4') ?>', name: 'itemid4', width: 100},
                        {display: '<?= translate('MAIL_MANAGER') ?>', name: 'sendmanager', width: 100 },
                        {display: '<?= translate('MAIL_SEND_REASON') ?>', name: 'reason', width: 200},
                        {display: '<?= translate('MAIL_INSERT_TIME') ?>', name: 'insert_time', width: 150},
                    ],
                    buttons: [
                        {name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {separator: true}
                    ],
                    searchitems: true,
                }));
                SG.admin = $.extend(SG.admin, {
                    add_url: '<?= site_url("mail/singlemail/add") ?>',
                });
            });
        </script>
    </body>
</html>